package com.wn.class30.service.impl;

import com.wn.class30.entity.Integral;
import com.wn.class30.mapper.IntegralDao;
import com.wn.class30.service.IntegralDeployService;
import com.wn.class30.service.IntegralService;
import org.springframework.stereotype.Service;

import javax.annotation.Resource;
import java.util.List;

/**
 * @author yuyu
 * @since 2020/4/19 22:03
 */
@Service
public class IntegralDeployServiceImpl implements IntegralDeployService {

    @Resource
    private IntegralDao integralDao;
    @Override
    public List<Integral> selectIntegral() {
        return integralDao.selectByExample(null);
    }

    @Override
    public int updateByPrimaryKeySelective(Integral integral) {
        return integralDao.updateByPrimaryKeySelective(integral);
    }
}
